
package code.codeworld.search.web_search.mapper;

import code.codeworld.search.web_search.model.vo.WebSearchResultVo;
import code.codeworld.search.web_search.model.vo.WebSearchVo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * WebSearchMapper映射
 *
 * @author freecode
 * @date 2023/03/23 00:20
 **/
@Mapper
public interface WebSearchMapper {

    /**
     * 全局搜索总条数
     */
    int globalSearchCount(@RequestBody WebSearchVo webSearchVo);

    /**
     * 全局搜索
     */
    List<WebSearchResultVo> globalSearch(@RequestBody WebSearchVo webSearchVo);

}
